#include "head.h"
/*  USEAGE: by yuesuren
    rm指令
 
 */
int fun_rm(char *p, char *path){
    char temp_path[256];  // 临时缓冲区
    printf("before snprintf\n");
    printf("%s, %s\n", p, path);
    // 构建文件路径
    strcpy(temp_path, p);
    strcat(temp_path, path);
    printf("%s\n", temp_path);
    if (remove(temp_path) != 0) {
        printf("删除失败！\n");
        return 0;
    } else {
        printf("File deleted successfully.\n");
        return 1;
    }
}

